package org.dromara.run.domain.vo;

import org.dromara.basic.domain.Member;
import org.dromara.basic.domain.vo.MemberVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.run.domain.RunList;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 阳光跑名单视图对象 phy_run_list
 *
 * @author chl
 * @date 2024-08-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = RunList.class)
public class RunListVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long listId;

    /**
     * 计划id
     */
    private String scheduleId;

    @ExcelProperty(value = "序号")
    private Integer index;

    @Translation(type = TransConstant.SCHEDULE_ID_TO_NAME, mapper = "scheduleId")
    @ExcelProperty(value = "跑步计划")
    private String scheduleName;

    @ExcelProperty(value = "姓名")
    private String studentName;
    /**
     * 用户信息id
     */
    @ExcelProperty(value = "学号")
    private String memberId;

    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_user_sex")
    private String gender;

    @ExcelProperty(value = "年级")
    private String years;

    @ExcelProperty(value = "学院")
    private String collegeName;

    @ExcelProperty(value = "专业")
    private String professionalName;

    @ExcelProperty(value = "班级")
    private String className;
    /**
     * 是否免测
     */

    @ExcelProperty(value = "是否免测", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "phy_run_is_free")
    private String isFree;

    private String tenantId;

    private MemberVo memberInfo;

    private String classId;
    private String deptId;

    private String professionalId;
    private String collegeId;


}
